package com.trickytriads.events
{
	import flash.events.Event;

	/**
	 * As the name implies, GetAllCardsEvent is an event that retrieves
	 * and stores all data from the server.
	 */
	public class GetAllCardsEvent extends Event
	{
		// Request and done types
		public static const GETALLCARDS_REQUEST:String = "getAllCardsRequest";
		public static const GETALLCARDS_DONE:String = "getAllCardsDone";
		
		// Array of CardData
		[ArrayElementType("com.trickytriads.model.CardData")]
		public var _cards:Array;
		
		public function GetAllCardsEvent(type:String, cards:Array = null)
		{
			super(type, false, false);
			this._cards = cards;
		}
		
	}
}